(function(modules) { // webpackBootstrap
	// The module cache
	var installedModules = {};
	// The require function
	function __webpack_require__(moduleId) {
		// Check if module is in cache
		if(installedModules[moduleId]) {
			return installedModules[moduleId].exports;
		}
		// Create a new module (and put it into the cache)
		var module = installedModules[moduleId] = {
			i: moduleId,
			l: false,
			exports: {}
		};
		// Execute the module function
		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
		// Flag the module as loaded
		module.l = true;
		// Return the exports of the module
		return module.exports;
	}
	// expose the modules object (__webpack_modules__)
	__webpack_require__.m = modules;
	// expose the module cache
	__webpack_require__.c = installedModules;
	// define getter function for harmony exports
	__webpack_require__.d = function(exports, name, getter) {
		if(!__webpack_require__.o(exports, name)) {
			Object.defineProperty(exports, name, { enumerable: true, get: getter });
		}
	};
	// define __esModule on exports
	__webpack_require__.r = function(exports) {
		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
		}
		Object.defineProperty(exports, '__esModule', { value: true });
	};
	// create a fake namespace object
	// mode & 1: value is a module id, require it
	// mode & 2: merge all properties of value into the ns
	// mode & 4: return value when already ns object
	// mode & 8|1: behave like require
	__webpack_require__.t = function(value, mode) {
		if(mode & 1) value = __webpack_require__(value);
		if(mode & 8) return value;
		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
		var ns = Object.create(null);
		__webpack_require__.r(ns);
		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
		return ns;
	};
	// getDefaultExport function for compatibility with non-harmony modules
	__webpack_require__.n = function(module) {
		var getter = module && module.__esModule ?
			function getDefault() { return module['default']; } :
			function getModuleExports() { return module; };
		__webpack_require__.d(getter, 'a', getter);
		return getter;
	};
	// Object.prototype.hasOwnProperty.call
	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
	// __webpack_public_path__
	__webpack_require__.p = "";
	// Load entry module and return exports
	return __webpack_require__(__webpack_require__.s = 14);
})
/************************************************************************/
([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),
/* 3 */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),
/* 7 */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),
/* 8 */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),
/* 10 */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),
/* 11 */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),
/* 12 */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),
/* 13 */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),
/* 14 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXTERNAL MODULE: ./src/index.less
var src = __webpack_require__(0);

// CONCATENATED MODULE: ./src/consts/options.js
const defaultOptions = {
    version:'3.0.0',
    avatar: null,
    favicon: null,
    customNavs: [],
    catalog: {
        enable: true,
        move: true,
        index: true,
        level1: 'h2',
        level2: 'h3',
        level3: 'h4',
    },
    signature: {
        enable: false,
        author: null,
        license: '署名-非商业性使用-相同方式共享 4.0 国际',
        link: 'https://creativecommons.org/licenses/by-nc-sa/4.0/',
        remark: null,
    },
    sponsor: {
        enable: true,
        text: 'Buy me a cup of coffee ☕.',
        paypal: null,
        wechat: null,
        alipay: null,
    },
    github: {
        enable: true,
        color: '#fff',
        target: 'https://github.com/Rogers-Ma',
        fill: null,
        link: null,
    }
};

/* harmony default export */ var consts_options = (defaultOptions);
// CONCATENATED MODULE: ./src/consts/tools.js
/**
 * 当前页面是否为博文内容页。
 */
function isPostPage() {
    return $('#topics').length > 0;
}

/**
 * 显示左侧边栏。
 */
function showSidebar() {
    $('.forFlow').css({ marginLeft: '260px' });
    $('#sideBar').show();
}


// EXTERNAL MODULE: ./src/components/githubCorner/index.less
var githubCorner = __webpack_require__(1);

// CONCATENATED MODULE: ./src/components/githubCorner/index.js



function buildGithubCorner() {
    var config = consts_options.github;
    if (config.enable) {
        let fillStyle = config.fill ? `fill:${config.fill};` : '';
        $('body').append(
            `<a href="${config.link}" class="github-corner" title="Fork me on GitHub" target="${config.target}">
                <svg width="60" height="60" viewBox="0 0 250 250" style="${fillStyle} color:${config.color};" aria-hidden="true">
                    <path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
                    <path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
                    <path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path>
                </svg>
            </a>`);
    }
}

/* harmony default export */ var components_githubCorner = (buildGithubCorner);
// EXTERNAL MODULE: ./src/components/customNavList/index.less
var customNavList = __webpack_require__(2);

// CONCATENATED MODULE: ./src/components/customNavList/index.js



function buildCustomNavList() {
    const navs = consts_options.customNavs;
    const $navList = $('#navList');

    if (navs && navs.length) {
        navs.forEach((nav) => {
            if (nav.chilren && nav.chilren.length) {
                var subnavs = nav.chilren.map(function (subnav) {
                    return `<li><a class="menu" href="${subnav.url}">${subnav.title}</a></li>`;
                });
                $navList.find('li').eq(1).after(`
                    <li class="esa-has-subnavs">
                        <a class="menu" href="javascript:void(0);">${nav.title}
                            <svg class="arrow" width="9px" height="9px" viewBox="0 0 13 7" xml:space="preserve" fill="none" stroke="var(--text-color)"><path d="M1,1l6.2,6L13,1"></path></svg>
                        </a>
                        <div class="esa-sub-navs"><div class="caret"></div><ul>${subnavs.join('')}</ul></div>
                    </li>`);

            } else {
                $navList.find('li').eq(1).after(`<li><a class="menu" href="${nav.url}">${nav.title}</a></li>`);
            }
        });

        $('li.esa-has-subnavs').hover(function () {
            $(this).find('svg').addClass('open');
            $(this).find('.esa-sub-navs').fadeIn('fast');
        }, function () {
            $(this).find('svg').removeClass('open');
            $(this).find('.esa-sub-navs').hide();
        });
    }

    $.each($navList.children('li'), (index, nav) => {
        if($(nav).children('a').length){
            $(nav).append('<i></i>');
        }else{
            $(nav).remove();
        }
    });

    // var startheight = $(document).scrollTop();
    // var headerHeight = $('#header').outerHeight();
    // $(window).scroll(function () {
    //     var endHeight = $(document).scrollTop();
    //     if (endHeight > headerHeight) {
    //         $('#header').hide();
    //     } else {
    //         $('#header').show();
    //     }
    //     if (endHeight < startheight) {
    //         $('#header').show();
    //     }
    //     startheight = $(document).scrollTop();
    // });

    $('#header').prepend(`<div class="esa-mobile-menu"><i class="fa fa-bars"></i></div>`);
    $('.esa-mobile-menu').on('click', () => {
        $('#navigator').fadeToggle();
    });
}

/* harmony default export */ var components_customNavList = (buildCustomNavList);
// EXTERNAL MODULE: ./src/components/customFooter/index.less
var customFooter = __webpack_require__(3);

// CONCATENATED MODULE: ./src/components/customFooter/index.js



function buildCustomFooter() {
    $('#footer').append(`<span class="esa-copyright">& Theme <a href="https://github.com/esofar/cnblogs-theme-silence" target="_blank">Silence v${consts_options.version}</a></span>`);
}

/* harmony default export */ var components_customFooter = (buildCustomFooter);
// EXTERNAL MODULE: ./src/components/bloggerProfile/index.less
var bloggerProfile = __webpack_require__(4);

// CONCATENATED MODULE: ./src/components/bloggerProfile/index.js



function buildBloggerProfile() {
    const avatar = consts_options.avatar;
    const favicon = consts_options.favicon;
    if (avatar) {
        $('#sideBarMain').prepend(`<img class="esa-profile-avatar" src="${avatar}" />`);
    };
    if (favicon) {
        $('#favicon').attr('href', favicon);
    }
}

/* harmony default export */ var components_bloggerProfile = (buildBloggerProfile);
// EXTERNAL MODULE: ./src/components/postContents/index.less
var postContents = __webpack_require__(5);

// CONCATENATED MODULE: ./src/components/postContents/index.js



function buildPostContents() {
    const config = consts_options.catalog;
    if (config.enable) {
        let levels = [config.level1, config.level2, config.level3];
        let $headers = $('#cnblogs_post_body').find(levels.join(','));
        if (!$headers.length) {
            return false;
        }

        $('body').append(`<div class="esa-contents"></div>`);

        let h1c = 0;
        let h2c = 0;
        let h3c = 0;

        let catalogContents = '<ul>';

        $.each($headers, (index, header) => {
            const tagName = header.tagName.toLowerCase();
            const text = $(header).text();
            let id = $(header).attr('id');
            let titleIndex = '';
            let titleContent = text;

            if (!config.index) {
                switch (tagName) {
                    case config.level1:
                        titleContent = `<span class="level1">${titleContent}</span>`;
                        break;
                    case config.level2:
                        titleContent = `<span class="level2">${titleContent}</span>`;
                        break;
                    case config.level3:
                        titleContent = `<span class="level3">${titleContent}</span>`;
                        break;
                }
            } else {
                if (tagName === config.level1) {
                    h1c++;
                    h2c = 0;
                    h3c = 0;
                    titleIndex = `<span class="level1">${h1c}. </span>`;
                } else if (tagName === config.level2) {
                    h2c++;
                    h3c = 0;
                    titleIndex = `<span class="level2">${h1c}.${h2c}. </span>`;
                } else if (tagName === config.level3) {
                    h3c++;
                    titleIndex = `<span class="level3">${h1c}.${h2c}.${h3c}. </span>`;
                }
            }

            if (!id) {
                id = $(header).text().replace(/\ /g,'-').toLowerCase();
                $(header).attr('id', id);
            }

            catalogContents +=
                `<li class="${tagName}" title="${text}">
                    <a class="esa-anchor-link" href="#${id}">${(titleIndex + titleContent)}</a>
                 </li>`;

            $(header).append(`<a href="#${id}" class="esa-anchor">#</a>`)
                .hover(() => {
                    $(header).find('.esa-anchor').css('opacity', 1);
                }, () => {
                    $(header).find('.esa-anchor').css('opacity', 0);
                });
        });

        catalogContents += `</ul>`;

        $('.esa-contents').append(catalogContents);
    }
}

/* harmony default export */ var components_postContents = (buildPostContents);
// EXTERNAL MODULE: ./src/components/postLightbox/index.less
var postLightbox = __webpack_require__(6);

// CONCATENATED MODULE: ./src/consts/cdn.js
const lightbox = {
    css: 'https://unpkg.com/lightbox2@2.11.1/dist/css/lightbox.min.css',
    js: 'https://unpkg.com/lightbox2@2.11.1/dist/js/lightbox.min.js',
};

const clipboard = {
    js: 'https://unpkg.com/clipboard@2.0.0/dist/clipboard.min.js'
};
// CONCATENATED MODULE: ./src/components/postLightbox/index.js



function buildPostLightbox() {
    $('head').append(`<link rel="stylesheet" href="${lightbox.css}"/>`);
    $.getScript(lightbox.js, () => {
        $('#cnblogs_post_body').find('img').wrap(function () {
            const src = $(this).attr("src");
            const title = $(this).attr("title") || '';
            const alt = $(this).attr("alt") || '';
            return `<a href="${src}" data-title="${title}" data-alt="${alt}" data-lightbox="roadtrip"></a>`;
        });
        $(".code_img_closed, .code_img_opened, .cnblogs_code_copy img").unwrap();
    });

}

/* harmony default export */ var components_postLightbox = (buildPostLightbox);
// EXTERNAL MODULE: ./src/components/hljsLineNumber/index.less
var hljsLineNumber = __webpack_require__(7);

// CONCATENATED MODULE: ./src/components/hljsLineNumber/index.js


function buildHljsLineNumber() {
    let $codes = $('.postBody .cnblogs-markdown').find('pre code');
    if (!$codes.length) {
        return false;
    }
    $.each($codes, (_, code) => {
        if (!$(code).hasClass('hljsln')) {
            var html = $(code).html();
            html = addLineNumbersFor(html);
            $(code).html(html).addClass('hljsln');
            var $lastNum = $('span[data-num]:last');
            if (!$lastNum.html()) {
                $lastNum.remove();
            }
        }
    });
}

function addLineNumbersFor(html) {
    var text = html.replace(/<span[^>]*>|<\/span>/g, '');
    if (/\r|\n$/.test(text)) {
        html += '<span class="ln-eof"></span>';
    }
    var num = 1;
    html = html.replace(/\r\n|\r|\n/g, function (a) {
        num++;
        return a + '<span class="ln-num" data-num="' + num + '"></span>';
    });
    html = '<span class="ln-num" data-num="1"></span>' + html;
    html = '<span class="ln-bg"></span>' + html;
    return html;
}

/* harmony default export */ var components_hljsLineNumber = (buildHljsLineNumber);
// EXTERNAL MODULE: ./src/components/postSignature/index.less
var postSignature = __webpack_require__(8);

// CONCATENATED MODULE: ./src/components/postSignature/index.js



function buildPostSignature() {
    const config = consts_options.signature;
    if (config.enable) {
        const postUrl = $('#cb_post_title_url').attr('href');
        const authorName = config.author || $('#profile_block a').eq(0).html();
        const content =
            `<div class="esa-post-signature"> 
                        <p>作者：${authorName}</p> 
                        <p>出处：<a href="${postUrl}">${postUrl}</a></p> 
                        <p>版权：本文采用「<a href="${config.link}"  target="_blank">${config.license}</a>」知识共享许可协议进行许可。</p> 
                        <p>${config.remark || ''}</p> 
                    </div>`;

        $('#MySignature').html(content).show();
    }
}

/* harmony default export */ var components_postSignature = (buildPostSignature);
// EXTERNAL MODULE: ./src/components/postSponsor/index.less
var postSponsor = __webpack_require__(9);

// EXTERNAL MODULE: ./src/components/layer/index.less
var components_layer = __webpack_require__(10);

// CONCATENATED MODULE: ./src/components/layer/index.js


function message(content) {
    $('body').prepend(`<div class="esa-layer"><span class="content">${content}</span></div>`);
    let $layer = $('.esa-layer');
    $layer.slideDown(200);
    setTimeout(() => {
        $layer.remove();
    }, 2000);
}
// CONCATENATED MODULE: ./src/components/postSponsor/index.js




function buildPostSponsor() {
    const config = consts_options.sponsor;

    $('#blog_post_info').prepend(`
                <div class="esa-sponsor">
                    <div class="title">${config.text}</div>
                    <ul class="box">
                        <li class="paypal"><svg t="1599893643429" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1307" width="32" height="32"><path d="M941.021887 369.059735c7.422144 34.295426 5.703717 73.709573-2.303424 116.524012-37.147285 188.515157-162.263434 253.632592-322.771878 253.632592h-25.154854c-19.414575 0-35.428857 14.295855-38.82915 33.710429l-2.303424 10.859-31.407006 197.655729-1.133431 8.555575c-3.985289 19.414575-19.999572 33.71043-39.414146 33.71043H334.30728c-16.014282 0-26.288285-13.125861-23.984861-29.140144 10.274003-63.984004 19.999572-127.968008 30.273575-191.952012s20.548006-127.383011 30.858571-191.367015c1.718428-13.710858 10.859-21.133002 24.569857-21.133003 22.85143 0 45.70286-0.584997 74.843004 0 41.132574 0.584997 88.553862-1.718428 134.805156-11.99243 61.68058-13.710858 117.694005-38.82915 163.945299-82.265148 41.717571-38.82915 69.687721-86.835434 88.553862-140.545435a515.893884 515.893884 0 0 0 19.999571-75.976435c1.133431-6.837148 2.851858-5.703717 6.837148-2.851858 31.407005 23.436427 49.139715 54.843432 55.976863 92.539151z m-98.242867-161.093441c0 46.836291-10.859 91.40572-26.288286 134.805156-29.688578 86.250437-85.702003 147.96758-172.537437 179.959582-46.287857 16.562716-94.842575 23.436427-143.98229 23.98486-34.295426 0.584997-68.55429 0-102.813154 0-37.147285 0-60.547149 18.281144-67.420859 54.843432-8.007141 43.435998-39.414146 245.662013-48.554718 302.772307-0.584997 3.985289-2.303424 5.703717-6.837148 5.703717H105.829543a27.494841 27.494841 0 0 1-27.421716-31.407005L210.946121 38.280716A45.995358 45.995358 0 0 1 256.063984 0h341.638019c24.569858 0 81.131717 10.859 119.412433 25.703288 81.131717 31.407005 125.664584 95.391009 125.664584 182.226444z" fill="var(--text-color)" p-id="1308"></path></svg></li>
                        <li class="alipay"><svg t="1599893614075" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1025" width="32" height="32"><path d="M828.571429 624.342857c-44.228571-14.742857-103.657143-37.371429-169.714286-61.257143 39.771429-68.914286 71.428571-147.428571 92.228571-232.685714H533.142857v-78.4h266.971429v-43.771429H533.142857V77.714286h-109.028571c-19.085714 0-19.085714 18.857143-19.085715 18.857143v111.771428H135.085714v43.771429h270.057143v78.4H182.171429v43.771428h432.457142a762.491429 762.491429 0 0 1-62.285714 151.885715c-140.342857-46.171429-290.057143-83.657143-384.114286-60.571429-60.114286 14.857143-98.857143 41.257143-121.714285 68.914286-104.457143 126.857143-29.6 319.542857 191.085714 319.542857C368 853.942857 493.714286 781.257143 591.085714 661.714286 736.342857 731.428571 1024 851.085714 1024 851.085714V680.457143s-36.114286-2.857143-195.428571-56.114286zM217.028571 780.114286c-172 0-222.857143-135.2-137.828571-209.257143 28.342857-25.028571 80.228571-37.257143 107.885714-40 102.171429-10.057143 196.8 28.8 308.457143 83.2-78.628571 102.285714-178.628571 166.057143-278.514286 166.057143z" fill="var(--text-color)" p-id="1026"></path></svg></li>
                        <li class="wechat"><svg t="1599893658389" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1451" width="32" height="32"><path d="M1004.416 543.914667c-25.984-58.88-75.008-105.642667-131.925333-134.442667-100.437333-50.858667-225.322667-50.56-325.504 1.28-69.589333 35.712-127.701333 99.712-144.170667 177.578667-13.568 57.344-1.408 119.082667 29.013333 169.002666 45.269333 75.178667 127.104 123.178667 212.096 138.581334 61.568 12.501333 125.269333 5.077333 185.088-12.16 35.925333 13.909333 67.925333 36.437333 102.741334 53.162666a2238.762667 2238.762667 0 0 0-28.842667-89.685333c39.082667-27.733333 74.496-62.336 95.744-105.770667 31.744-60.373333 33.664-135.296 5.76-197.546666z m-423.424-403.882667c-106.453333-59.904-239.018667-68.906667-353.536-27.52-75.264 27.093333-143.36 77.44-185.429333 145.92-38.186667 61.866667-52.48 139.008-34.090667 209.792 18.474667 78.506667 73.002667 144.341333 139.178667 188.288-12.8 36.266667-24.96 72.490667-36.48 109.013333 41.6-21.76 83.2-44.501333 124.842666-66.602666 49.92 16 103.04 23.850667 156.16 22.101333a262.784 262.784 0 0 1-10.88-125.909333c9.6-58.496 41.6-112 85.077334-151.637334 73.642667-68.906667 177.962667-97.962667 277.162666-90.922666-18.602667-91.093333-82.602667-168.064-163.157333-212.48h1.152z m73.941333 426.197333c-8.917333 27.818667-49.322667 36.181333-68.906666 15.018667-21.589333-19.584-13.184-60.501333 15.146666-69.248 31.317333-13.226667 67.498667 22.912 53.76 54.229333z m204.586667 3.925334c-10.922667 25.002667-48.682667 30.848-67.242667 11.52-8.917333-8.149333-11.52-20.437333-14.677333-31.146667 4.437333-19.541333 17.92-39.808 39.68-40.746667 30.08-4.181333 57.002667 32.981333 41.6 60.416h0.64zM554.24 294.784c0.341333 41.002667-54.4 66.602667-85.12 38.784-31.872-22.826667-22.826667-78.378667 14.592-89.856 33.493333-13.44 73.088 14.677333 70.442667 50.56l0.085333 0.512z m-258.517333 10.410667c-7.338667 35.626667-55.082667 52.821333-83.029334 28.928-32.384-22.826667-23.296-79.402667 14.72-90.922667 37.248-14.336 79.573333 23.466667 68.309334 61.994667z" fill="var(--text-color)" p-id="1452"></path></svg><i class="fa fa-fwechat"></i></li>
                    </ul>
                    <div class="qrshow">
                        <img src="">
                    </div>
                </div>`);

    var $sponsor = $('.esa-sponsor');

    $sponsor.find('.box li').hover(function () {
        const type = $(this).attr('class');
        if (type == 'paypal' && !config.paypal) {
            return message('没有设置 PayPal 收款二维码😅');
        }
        if (type == 'alipay' && !config.alipay) {
            return message('没有设置支付宝收款二维码😅');
        }
        if (type == 'wechat' && !config.wechat) {
            return message('没有设置微信收款二维码😅');
        }
        var qrcode = null;
        switch (type) {
            case 'paypal':
                qrcode = config.paypal;
                break;
            case 'alipay':
                qrcode = config.alipay;
                break;
            case 'wechat':
                qrcode = config.wechat;
                break;
        }
        $sponsor.find('.qrshow').html(`<img src="${qrcode}">`).show();
    }, function () {
        $sponsor.find('.qrshow').hide();
    });
}

/* harmony default export */ var components_postSponsor = (buildPostSponsor);
// EXTERNAL MODULE: ./src/components/postCommentAvatars/index.less
var postCommentAvatars = __webpack_require__(11);

// CONCATENATED MODULE: ./src/components/postCommentAvatars/index.js


function buildPostCommentAvatars() {
    const postCommentBody = '.feedbackItem > .feedbackCon > .blog_comment_body';
    const builder = () => {
        $(postCommentBody).before(`<div class='esa-comment-avatar'><a target='_blank'><img /></a></div>`);
        let $feedbackContents =$('.feedbackItem > .feedbackCon');
        $.each($feedbackContents, function(index, feedbackContent){
            let avatarUrl = null;
            let container = $(feedbackContent).find('span[id$="avatar"]');
            if (container.length) {
                avatarUrl = $.trim($(container).text());
            }
            $(feedbackContent).find(".esa-comment-avatar img").attr("src", avatarUrl || 'https://pic.cnblogs.com/face/sample_face.gif');
            const blogUrl = $(feedbackContent).parent().find(".comment_date").next().attr("href");
            $(feedbackContent).find(".esa-comment-avatar a").attr("href", $.trim(blogUrl));
        })
    }
    if ($(postCommentBody).length) {
        builder();
    } else {
        let count = 1;
        // poll whether the feedbacks is loaded.
        let intervalId = setInterval(() => {
            if ($(postCommentBody).length) {
                clearInterval(intervalId);
                builder();
            }
            if (count == 10) {
                // no feedback.
                clearInterval(intervalId);
            }
            count++;
        }, 500);
    }
}

/* harmony default export */ var components_postCommentAvatars = (buildPostCommentAvatars);
// EXTERNAL MODULE: ./src/components/toolbar/index.less
var toolbar = __webpack_require__(12);

// CONCATENATED MODULE: ./src/components/toolbar/index.js






function buildToolbar() {
    $('body').append(`<div class="esa-toolbar">
        <div class="bars"><i class="fa fa-ellipsis-h"></i></div>
        <span class="up" title="返回顶部"><i class="fa fa-chevron-up"></i></span>
        <span class="mode" title="切换模式"><i class="fa fa-adjust"></i></span>
        <span class="skin" title="主题设置"><i class="fa fa-cog"></i></span>
        <div class="skin-popup">
            <div class="item">
                <div class="title">主题色彩</div>
                <div class="themes">
                    <button data-theme="a1" style="background: #2D8CF0;"></button>
                    <button data-theme="b1" style="background: #FA7298;"></button>
                    <button data-theme="c1" style="background: #42B983;"></button>
                    <button data-theme="d1" style="background: #607D8B;"></button>
                    <button data-theme="e1" style="background: #5E72E4;"></button>
                    <button data-theme="f1" style="background: #FF9700;"></button>
                    <button data-theme="g1" style="background: #FF5722;"></button>
                    <button data-theme="h1" style="background: #009688;"></button>
                    <button data-theme="i1" style="background: #673BB7;"></button>
                    <button data-theme="j1" style="background: #906f61;"></button>
                </div>
            </div>
        </div>
        </div>
    </div>`);

    const showContents = isPostPage() && consts_options.catalog.enable;

    if (showContents) {
        $('.esa-toolbar').append(`<span class="contents" title="阅读目录"><i class="fa fa-list-ul"></i></span>`);
    }

    const modeKey = `silence-mode-${currentBlogApp}`;
    const themeKey = `silence-theme-${currentBlogApp}`;
    const modeLoading = sessionStorage.getItem(modeKey) || 'light';
    const themeLoading = sessionStorage.getItem(themeKey) || 'a1';

    $('html').attr('mode', modeLoading);
    $('html').attr('theme', themeLoading);

    const $toolbar = $('.esa-toolbar');
    const $skinPopup = $('.skin-popup');

    let show = false;
    $toolbar.find('.bars').click(function () {
        if (!show) {
            $toolbar.find('.bars').addClass('bars-show');
            $toolbar.find('.up').addClass('up-show');
            $toolbar.find('.mode').addClass('mode-show');
            $toolbar.find('.skin').addClass('skin-show');
            if (showContents) {
                $toolbar.find('.contents').addClass('contents-show');
            }
        } else {
            $toolbar.find('.bars').removeClass('bars-show');
            $toolbar.find('.up').removeClass('up-show');
            $toolbar.find('.mode').removeClass('mode-show');
            $toolbar.find('.skin').removeClass('skin-show');
            if (showContents) {
                $toolbar.find('.contents').removeClass('contents-show');
            }
        }
        show = !show;
    });

    $toolbar.find('.up').click(() => {
        $('html, body').animate({ scrollTop: 0 }, 450);
    });

    $toolbar.find('.mode').click(() => {
        const mode = $('html').attr('mode') == 'light' ? 'dark' : 'light';
        sessionStorage.setItem(modeKey, mode);
        $('html').attr('mode', mode);
    });

    $toolbar.find('.skin').click(() => {
        $skinPopup.slideToggle();
    });

    $skinPopup.find('.themes button').click(function() {
        const theme = $(this).data('theme');
        sessionStorage.setItem(themeKey, theme);
        $('html').attr('theme', theme);
    });

    $toolbar.find('.contents').click(() => {
        $('.esa-contents').toggleClass(function () {
            if ($(this).hasClass('active')) {
                $(this).removeClass('active');
                return 'noactive';
            } else {
                $(this).removeClass('noactive');
                return 'active';
            }
        });
    });
}

/* harmony default export */ var components_toolbar = (buildToolbar);
// EXTERNAL MODULE: ./src/components/loader/index.less
var loader = __webpack_require__(13);

// CONCATENATED MODULE: ./src/components/loader/index.js


const loader_loader = {
}

loader_loader.show = () => {
    $('.esa-loader').show();
}

loader_loader.hide = () => {
    $('.esa-loader').fadeOut();
}

/* harmony default export */ var components_loader = (loader_loader);
// CONCATENATED MODULE: ./src/index.js


















class src_Silence {
    constructor() {
        this.init();
    }

    init() {
        $.extend({
            silence: options => {
                if (options) {
                    $.extend(true, consts_options, options);
                }
                this.building();
            },
        })
    }

    building() {
        components_bloggerProfile();
        components_githubCorner();
        components_customFooter();
        components_customNavList();
        components_toolbar();
        if (isPostPage()) {
            components_postContents();
            components_postLightbox();
            components_hljsLineNumber();
            components_postSignature();
            components_postSponsor();
            components_postCommentAvatars();
        } else {
            showSidebar();
        }
        components_loader.hide();
    }
}

new src_Silence();

/***/ })
]);